<?php
namespace app\admin\controller;
use QL\QueryList;
class Caiji extends Common
{
   public function index(){
        $rule=[
           'title'=>['.unit h1','text'], 
           'time'=>['.unit h4 span.ago','text'],
        ];
        $data = QueryList::Query('http://mobile.csdn.net/',$rule)->data;
        //打印结果
        print_r($data);
    }
}
